Meaning of the word "ill-gotten gains shall never prosper" in English

What does "ill-gotten gains shall never prosper" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

ill-gotten gains shall never prosper

US /ˌɪlˌɡɑː.tən ˈɡeɪnz ʃæl ˈnev.ɚ ˈprɑː.spɚ/
UK /ˌɪlˌɡɒt.ən ˈɡeɪnz ʃæl ˈnev.ə ˈprɒs.pə/
"ill-gotten gains shall never prosper" picture

Idiom

wealth or benefits acquired through dishonest or illegal means will not bring long-term success or happiness

Example:
He stole the money to start a business, but as they say, ill-gotten gains shall never prosper.
The corrupt official lost everything in the end; ill-gotten gains shall never prosper.